-
Notifications
You must be signed in to change notification settings - Fork 407
fix(keys): Symbol is being checked for type of function #209
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it! |
CLAs look good, thanks! |
Hey @vicb - is there any chance you could merge it into the lib soon? It is crucial to get it work with |
I'm going to take a look today. Isn't the var you point to in the issue a local variable ? |
Could you expand on that. Ng2 tests pass down to IE9 and I can't see where es6-shim defines the global I am not opposed to merge this change to make the code more robust but I'd like to understand what your issue is first. |
Probably tests in angular 2 are being run without any additional libraries (as I'm not 100% sure but I guess this particular line of Regarding the condition here I think that checking like they did is much more robust: It prevents situation like I met so that global Is it fair enough? |
if |
Yes, you're right - it shouldn't be like this and that's another story. But on the other hand assumption that something which is defined ( |
The change makes sense but the issue doesn't and it is always better to understand the root causes of issues. I've run the following test on IE11 (via Sauce Labs): fit('should test', function() {
console.log('Promise = ', Promise);
console.log('Symbol = ', Symbol);
}); results:
As you can see es6-shim never set |
Ok. I've investigated problem once again and the issue is from both Sorry for not being precise with env - I haven't though it is so crucial for the problem this PR is trying to solve. |
The thing is we had no clue what the underlying issue was. Could you pen a defect against RxJS (and link it here) ? Thanks |
You can go to this plunker: http://plnkr.co/edit/ylqvcUi3dRcxVDB7MarZ?p=preview |
Could you remove es6-shim from this plunk and open an issue against the RxJS project ? |
Yes, I'll definitely do so (even today). And regarding |
Ok, here's the |
Thanks for creating the issue. I'll merge your PR as is |
landed as 6714be6 |
Thanks!
|
🚀 |
Resolves #206